package com.nes.springcloud.ribbon;

import com.nes.springcloud.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wdq on 17-6-1.
 */
@RestController
public class RibbonController {

    @Autowired
    private HelloService helloService;

    @GetMapping("add")
    public String add(Integer a,Integer b){
        return helloService.getResult(a,b);
    }

    @GetMapping("getResultBreak")
    public String getResultBreak(Integer a,Integer b){
        return helloService.getResultBreak(a,b);
    }
}
